/*
 * @lc app=leetcode.cn id=2525 lang=cpp
 *
 * [2525] 根据规则将箱子分类
 */

// @lc code=start
#include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
    string categorizeBox(int length, int width, int height, int mass)
    {
        long long volum = (long long)length * (long long)width * (long long)height;
        bool bulky = (volum >= 1e9) || (length >= 1e4) || (width >= 1e4) || (height >= 1e4);
        bool heavy = mass >= 100;
        if(bulky && heavy) return "Both";
        if(!bulky && !heavy) return "Neither";
        if(bulky && !heavy) return "Bulky";
        return "Heavy";
    }
};
// @lc code=end
